package com.reptile.constant;


/**
 * 常量类
 */
public  class YsReptileConstant {

    //设置代理，模范浏览器
    public static final String USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.183 Safari/537.36";

    //新浪网URL
    public static final String XL_NEWS_URL = "https://www.sina.com.cn/";

    //比特范URL
    public static final String BTF_NEWS_URL = "https://www.btcfans.com/flash/";

    //CSDN URL
    public static final String CSDN_NEWS_URL = "https://www.csdn.net/?spm=1001.2227.3001.5359";

    //baidu  URL
    public static final String BAIDU_NEWS_URL = "http://news.baidu.com/guoji";
    //pengpai URL
    public static final String P_PAI_NEWS_URL = "https://www.thepaper.cn/";
    //开源中国-技术问答 URL
    public static final String KAI_YZG_NEWS_URL = "https://www.oschina.net/question";
    //开源中国-数据库专区 URL
    public static final String KAI_DATA_BASE_NEWS_URL = "https://www.oschina.net/group/database";
    //开源中国-软件更新专区 URL
    public static final String KAI_SOFTWARE_UPDATE_NEWS_URL = "https://www.oschina.net/news/project";
    //开源中国-开发技能专区 URL
    public static final String KAI_DEVELOPING_SKILLS_NEWS_URL = "https://www.oschina.net/group/skill";
    //开源中国-综合资讯专区 URL
    public static final String KAI_COMPREHENSIVE_INFO_NEWS_URL = "https://www.oschina.net/news/industry";
    //雷锋网专区 URL
    public static final String KAI_LEI_F_INDUSTRY_NEWS_URL = "https://www.leiphone.com/category/sponsor";

    //默认图片
    public static final String DEFAULT_PIC_URL = "https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic2.zhimg.com%2F31a44e418540b58e41a177b0338d5df1_r.jpg&refer=http%3A%2F%2Fpic2.zhimg.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1618454540&t=8dd4306dc0d002b92832bd067ec28119";

    //加http
    public static final String DEFAULT_HTTPS_PREFIX ="https:";



    /**************************************爬取的图片网站地址**************************************/

    //素材类型-图片
    public static final String MATER_TYPE_PIC = "TU";

    //搜狗
    public static final String SO_GOU_PIC = "https://pic.sogou.com/";
    //wallhaven
    public static final String WALL_HAVEN_PIC = "https://wallhaven.cc/search?page=";

    //素材redis key
    public static final String PIC_REDIS_KEY = "YS:MATERIAL:TU";
    public static final String PIC_WALL_HAVEN_KEY = "YS:MATERIAL:WALL:HAVEN:TU";

}
